﻿@model IEnumerable<AuditModel.sp_GetEventSubjectScores_Result>

@{
    ViewBag.Title = AuditResources.UI.PageTitle;
    Layout = "~/Views/Shared/SubjectAdmin/_SubjectAdminLayout.cshtml";
    var grid = new WebGrid(Model,defaultSort:"AvgScore");
    grid.SortDirection = SortDirection.Descending;

}

<h2>@AuditResources.Score.ObjectName<text>情况</text></h2>

@grid.GetHtml(
        columns: grid.Columns(
                    grid.Column("ArchiveID", AuditResources.Archive.ID),
                    grid.Column("TeacherName", AuditResources.Archive.TeacherName),
                    grid.Column("CountyName", AuditResources.County.ObjectName),
                    grid.Column("SchoolName", AuditResources.Archive.SchoolName),
                        grid.Column("ClassDate", AuditResources.Archive.ClassDate),
                        grid.Column("AvgScore", "平均分", format:@<text>@string.Format("{0:F2}", item.AvgScore)</text>),
            grid.Column("UserId", string.Empty, format:@<text>@Html.ActionLink(AuditResources.UI.Details, "ScoreDetails", new { id = item.ArchiveID }, new { @class = "button" })</text>)
                        ))


